Skip to content

Conversation

estelle
Copy link
Member

@estelle estelle commented Jul 18, 2025

@estelle estelle requested review from a team as code owners July 18, 2025 15:54
@estelle estelle requested review from chrisdavidmills and wbamberg and removed request for a team July 18, 2025 15:54
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:WebAPI Web API docs labels Jul 18, 2025
@github-actions github-actions bot added the size/m [PR only] 51-500 LoC changed label Jul 18, 2025
Copy link
Contributor

github-actions bot commented Jul 18, 2025

Preview URLs (10 pages)
Flaws (1)

Note! 9 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/CSS/CSS_custom_highlight_API
Title: CSS custom highlight API
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/API/CSS/highlights which is a redirect

(comment last updated: 2025-07-21 11:52:55)

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, @estelle. A few bits for you to consider, but nothing major.

Copy link
Member Author

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving the c and h lowercase to match the writing guidelines. Otherwise, all issues addressed. Thanks!


## Custom highlight API in action

To enable styling text ranges on a webpage using the CSS Custom Highlight API, you create a {{domxref("Range")}} object, then a {{domxref("Highlight")}} object for the range. After registering the highlight using the {{domxref("HighlightRegistry.set()")}} method, you can then select the range using the {{cssxref("::highlight", "::highlight()")}} pseudo-element. The name defined in the `set()` method is used as the parameter of the `::highlight()` pseudo-element selector to select that range.The range selected by the `::highlight()` pseudo-element can be styled using a limited number of properties.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea!

estelle and others added 2 commits July 21, 2025 10:20
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by, just so we get code style right the first time

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I think this is GTG now. Thanks @estelle!

@chrisdavidmills chrisdavidmills merged commit 6afd6f5 into main Jul 21, 2025
12 checks passed
@chrisdavidmills chrisdavidmills deleted the chapi branch July 21, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants